//
//  CYHeaderCRView.m
//  CaiYun
//
//  Created by 今日信息科技 on 2017/6/23.
//  Copyright © 2017年 今日信息科技. All rights reserved.
//

#import "CYHeaderCRView.h"
#import "CYHeaderFooterView.h"
@implementation CYHeaderCRView
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        UIView *header = [CYHeaderFooterView getHeaderForCollectionView];
        [self addSubview:header];
        
        [header mas_updateConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_offset(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
        
    }
    return self;
}

@end


@implementation CYFooterCRView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        UIView *footer = [CYHeaderFooterView getFooterForCollectionView:1];
        [self addSubview:footer];
        
        [footer mas_updateConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_offset(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
    }
    
    return self;
}


@end
